<script setup>
import { HomeFilled, RefreshLeft } from '@element-plus/icons-vue'
import router from '@/router'

function toIndex() {
  router.push('/')
}
function doBack() {
  router.back()
}
</script>

<template>
  <div class="fv-error-404">
    <img src="/src/assets/images/error/404.png" class="fv-error-404-img">
    <div>
      <el-button style="background-color: #03d5b7;" :icon="HomeFilled" @click="toIndex">
        回首页
      </el-button>
      <el-button style="background-color: #ffc412;" :icon="RefreshLeft" @click="doBack">
        回上一页
      </el-button>
    </div>
  </div>
</template>

<style scoped>
.fv-error-404{
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}
.fv-error-404-img{
  width: 55%;
}
</style>
